package com.econ.powercloud.ems.dal.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * 储能站并离网的节点表
 * @author jwc
 * @since 2022/08/26
 */
@Data
@TableName(value = "ems_grid_process_node")
public class EmsGridProcessNode {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 所属组合id
     */
    @TableField(value = "process_group_id")
    private Long processGroupId;

    /**
     * 节点标题
     */
    @TableField(value = "node_title")
    private String nodeTitle;

    /**
     * 步骤序号
     */
    @TableField(value = "order_num")
    private Integer orderNum;

    /**
     * 前置节点id，多个用英文逗号分隔
     */
    @TableField(value = "fronts")
    private String fronts;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}